package com.spring.boot.po;

/**
 * 枚举类
 * 有了 enum 就必须不能有 public static final
 */
public class Season {

    public static void main(String[] args) {
        Season1 sess = Season1.SUMMER;
        System.out.println(sess.getSessionName());

        System.out.println(Season1.SUMMER);

//        switch (MyEnum.mergeImg){
//
//        }
    }




}

enum Season1{
    SPRING("aaa","春天啊"),
    SUMMER("BBB","夏天啊");

    private final String sessionName;
    private final String sessionDescription;

    Season1(String sessionName, String sessionDescription) {
        this.sessionName = sessionName;
        this.sessionDescription = sessionDescription;
    }

    public String getSessionName() {
        return sessionName;
    }

    public String getSessionDescription() {
        return sessionDescription;
    }
}